#include"Rectangle.h"
#include"Polygon.h"
#include"Triangle.h"
#include <conio.h>
int main()
{
	Rectangle rect;
	Triangle trgl;
	Polygon * ppoly1 = &rect;
	Polygon * ppoly2 = &trgl;
	ppoly1->setValues(4, 5);
	ppoly2->setValues(4, 5);
	cout << ppoly1->area() << endl;
	cout << ppoly2->area() << endl;
	_getch();
		return 0;
}